<!DOCTYPE HTML>
<html>
<head>
    <include file="Common:header_include"/>
    <title>编辑用户反馈信息管理</title>
    <style>
        #img img{
            float:left;
            width: 80px;
            height:80px;
            border-radius: 10%;
            margin-left: 10px;
        }
    </style>
</head>
<body>
<div class="pd-20">
    <form action="{:U('edit')}" method="post" class="form form-horizontal" id="form">
         <input name="id" type="hidden" value="{$data.id}">
        <div class="row cl">
            <label class="form-label col-2"><span class="c-red">*</span>用户：</label>
            <div class="formControls col-8">
                   <?php $title=getpatientLists($data['usertype'],$data['userid']);?>
			   <input type="text" class="input-text" placeholder="请输入"  value="{$title['realname']}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-2">用户类型：</label>
            <div class="formControls col-8">
				<input type="text" class="input-text" placeholder="请输入"   <if condition="$data['usertype'] eq 1">value="医生"<else/>value="患者"</if>  >
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-2">联系电话：</label>
            <div class="formControls col-8">
                <input type="text" class="input-text" placeholder="请输入"  value="{$data.phonenum}">
            </div>
        </div>
            <div class="row cl">
            <label class="form-label col-2">反馈内容：</label>
            <div class="formControls col-8">
                <textarea rows="5" cols="30" class="textarea" style="resize:none" name="comment" placeholder="请输入">{$data['comment']}</textarea>
            </div>
        </div>
        <if condition="$data['cover']">
            <div class="row cl" id="img">
                <label class="form-label col-2">图片集：</label>
                <?php
              $imgs=explode(",",$data['cover']);
            ?>
             <div id="layer-photos-demo" class="layer-photos-demo">
                <volist name="imgs" id="v">
                    <img    src="__UPS__{$v}"   layer-index="{$key}">
                </volist>
             </div>
            </div>
            <else/>
        </if>
        <div class="row cl">
            <label class="form-label col-2">回复内容：</label>
            <div class="formControls col-8">
         <script id="content" name="replay"  type="text/plain" style="width:100%;height:400px;" >{:htmlspecialchars_decode($data['replay'])}</script>
            </div>
       </div>
        <div class="row cl">
            <div class="col-8 col-offset-2">
                <input class="btn btn-primary radius" type="submit" value="提交">
            </div>
        </div>
          </form>
     </div>
   <include file="Common:footer_include"/>
</body>
 <script type="text/javascript">
        $(function () {
            var ue = UE.getEditor('content');
        });
         layer.photos({
                photos: '#layer-photos-demo',
                tab: function(pic, layero){
                    console.log(pic) //当前图片的一些信息
                }
            });
    </script>
</html>